import 'package:flutter/material.dart';
import 'loading.dart';
import 'package:flutterappyidongjingfen/Login/login.dart';
import 'app.dart';
import 'package:flutterappyidongjingfen/Financial/depositPage.dart';
import 'package:flutterappyidongjingfen/Financial/depositBrowsePage.dart';
import 'package:flutterappyidongjingfen/SecondControllers/AchievementBrowse.dart';
import 'dart:io';
import 'package:flutter/services.dart';

//void main() => runApp(MaterialApp(
//  debugShowCheckedModeBanner: false,
//  theme: ThemeData.fallback(),
////  home: tabBarPage(),
//  routes: <String,WidgetBuilder>{
//    "logoin":(BuildContext context) => new LoginPage(),
//    "tabBarPage":(BuildContext context) => new tabBarPage(),
//    "dispositPage":(BuildContext context) => new depositPage(),
//  },
//  home: LoadingPage(),
//));

void main(){
  runApp(myApp());
  SystemUiOverlayStyle light = SystemUiOverlayStyle(
    systemNavigationBarColor: Color(0xFF000000),
    systemNavigationBarDividerColor: null,
    statusBarColor: null,
    systemNavigationBarIconBrightness: Brightness.light,
    statusBarIconBrightness: Brightness.light,
    statusBarBrightness: Brightness.dark,
  );

  SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(statusBarColor: Colors.white);
  SystemChrome.setSystemUIOverlayStyle(light);
}

MaterialApp myApp(){
  return MaterialApp(
    debugShowCheckedModeBanner: false,
//  theme: ThemeData.fallback(),
//  home: tabBarPage(),
    routes: <String,WidgetBuilder>{
      "logoin":(BuildContext context) => new LoginPage(),
      "tabBarPage":(BuildContext context) => new tabBarPage(),
      "dispositPage":(BuildContext context) => new depositPage(),
      "dispositBrowsePage":(BuildContext context) => new DepositBrowsePage(),
      "AchievementBrowsePage":(BuildContext context) => new AchievementPage(),
    },
    home: LoadingPage(),
  );
}